# This is just an example for testing 

from FPContainer import *
from FPPattern import * 
from FPCheck import *
from FPEntity import *
import sys

container=FPContainer()


ent1=FPEntity("Baraeco project",50,5)


ent1.add_fppattern("[bB]araeco|BARAECO",10,"regexp")
ent1.add_fppattern("project",3,"string")
ent1.add_fppattern("generate.*alarms.*score.*threshold",15,"string")
ent1.add_fppattern("detect",3,"string")
ent1.add_fppattern("pattern",3,"string")
ent1.add_fppattern("secret",3,"string")
ent1.add_fppattern("threshold",3,"string")
ent1.add_fppattern("engine to detect fingerprints",10,"string")


container.add_fpentity(ent1)
container.add_fpchecks_from_entities()

print "Starting test"

str1=open("example.txt","r").read()


container.check_entities(str1)
container.clear()

